<?php

/**
 * Raspored filter form.
 *
 * @package    dnevnik
 * @subpackage filter
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormFilterTemplate.php 11675 2008-09-19 15:21:38Z fabien $
 */
class RasporedFormFilter extends BaseRasporedFormFilter
{
  public function configure()
  {
      $this->setWidget('razred_id', new sfWidgetFormInput());

      $this->setWidget('dan', new sfWidgetFormChoice(array('choices' => Functions::dani())));
      $this->setValidator('dan', new sfValidatorPass());
  }

  public function getFields()
  {
    return array(
      'id'        => 'Number',
      'razred_id' => 'ForeignKey',
      'dan'       => 'ForeignKey',
      'tip'       => 'Number',
      'cas_1'     => 'ForeignKey',
      'cas_2'     => 'ForeignKey',
      'cas_3'     => 'ForeignKey',
      'cas_4'     => 'ForeignKey',
      'cas_5'     => 'ForeignKey',
      'cas_6'     => 'ForeignKey',
      'cas_7'     => 'ForeignKey',
      'cas_8'     => 'ForeignKey',
      'cas_9'     => 'ForeignKey',
      'cas_10'    => 'ForeignKey',
    );
  }

}